<?php

namespace app\admin\model;

use think\Model;

/**
 * Complainthead
 * @controllerUrl 'complainthead'
 */
class Complainthead extends Model
{
    // 表主键
    protected $pk = 'BILLNO';
    
    // 表名
    protected $table = 'complainthead';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    protected $createTime = false;
    protected $updateTime = false;

    public function getbody(){
        return    $this->belongsTo('Complaintbody','BILLNO','BILLNO');
    }

}